<div class="row r1">
	<div class="ct-slide">
	<div class="plist">
	<?php 
	//Debug::print_r($this->toplefts);
	$i = 1;
	echo '<div id = "check" title = "'.count($this->toplefts).'"></div>';
	foreach ($this->toplefts as $value) {
		$class = "";
		if ($i == 1)
			$class = "active";
		echo '<div class="item '.$class.'" title="'.$i.'">';
		echo '<a class="feature" href="'.$value["link"].'"><img src="'.URLUltil::getImageUrl($this->getContext(), "product", $value[Product::IMAGE]).'"></a>';
		echo '<div class="info">';
			echo '<h4 class="title">'.$value[Product::NAME].'</h4>';
			echo '<div class="dt">';
			echo $value[Product::DESCRIPTION];
			echo '</div>';
			echo '<span class="price">'.FormatUtil::formatFloat($value[Product::PRICE1],'.').' đ</span>';
		echo '</div>';
		echo '</div>';
		$i++;
	}
	?>
	</div>
	<?php 
	$n = 1;
	echo '<div class="slide-nav">';
	foreach ($this->toplefts as $value) {
		$class = "";
		if ($n == 1)
			$class = "active";
		echo '<a class="'.$class.'" href="#" title="'.$n.'"></a>';
		$n++;
	}
	echo '</div>';
	?>
</div>
<!-- end ct-slide -->
	<div class="top-product pro-list">
		<div class="border-lt" style="overflow: hidden;">
		<?php foreach ($this->toprights as $value) {
		echo '<div class="pro">';
		echo '<div class="border-br">';
			echo '<a class="image" href="'.$value['link'].'"><img alt="'.$value[Product::NAME].'" src="'.URLUltil::getImageUrl($this->getContext(), "product", $value[Product::IMAGE]).'"></a>';
			echo '<div class="info">';
			echo '<a class="name" href="'.$value['link'].'">'.$value[Product::NAME].'</a>';
			echo '<span class="price">'.FormatUtil::formatFloat($value[Product::PRICE1],'.').' đ</span>';
			echo '</div>';
		echo '</div>';
		echo '</div>';
		}?>
		</div>
	</div><!-- end top-product -->
</div><!-- end row -->
<div class="row r2">
	<div class="pro-list">
	<div class="border-lt">
	<?php foreach ($this->row2s as $value) {
		echo '<div class="pro">';
		echo '<div class="border-br">';
		echo '<a class="image" href="'.$value['link'].'"><img alt="'.$value[Product::NAME].'" src="'.URLUltil::getImageUrl($this->getContext(), "product", $value[Product::IMAGE]).'" /></a>';
		echo '<div class="info">';
		echo '<a class="name" href="'.$value['link'].'">'.$value[Product::NAME].'</a>';
		echo '<span class="price">'.FormatUtil::formatFloat($value[Product::PRICE1],'.').' đ</span>';
		echo '</div>';
		echo '</div>';
		echo '</div>';
	}?>
	</div>
	</div>
	<div class="news">
		<div class="newest border-br">
			<h3 class="title">Tin tức công nghệ</h3>
			<ul class="newlist">
			<?php
			foreach ($this->top9news as $value) {
				echo '<li><a href="'.$value['link'].'">
			<img alt="'.$value[News::NAME].'" src="'.URLUltil::getImageUrl($this->getContext(), "news", $value[News::IMAGE]).'">'.$value[News::NAME].'</a></li>';
			}?>
			</ul>
		</div>
	</div>
</div><!-- end row r2-->
<div class="row r3">
	<div class="pro-list">
	<div class="border-lt">
	<?php foreach ($this->row3s as $value) {
		echo '<div class="pro">';
		echo '<div class="border-br">';
		echo '<a class="image" href="'.$value['link'].'">
					<img alt="'.$value[Product::NAME].'" src="'.URLUltil::getImageUrl($this->getContext(), "product", $value[Product::IMAGE]).'"></a>';
		echo '<div class="info">';
		echo '<a class="name" href="'.$value['link'].'">'.$value[Product::NAME].'</a>';
		echo '<span class="price">'.FormatUtil::formatFloat($value[Product::PRICE1],'.').' đ</span>';
		echo '</div>';
		echo '</div>';
		echo '</div>';
	}?>
	</div>
	</div>
</div><!-- end row 3 -->